﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace UNMS.Utility.Annotation
{
    /// <summary>
    /// 许可属性
    /// </summary>
    public class PermissionAttribute : Attribute
    {
        /// <summary>
        /// 许可模块
        /// </summary>
        public int Module { get; set; }

        /// <summary>
        /// 许可权值
        /// </summary>
        public int Power { get; set; }

        /// <summary>
        /// 许可属性
        /// </summary>
        /// <param name="module">许可模块</param>
        /// <param name="power">许可权值</param>
        public PermissionAttribute(int module, int power)
        {
            Module = module;
            Power = power;
        }
    }
}
